using System.Net.Mail;

namespace KickStart.Data.Mail
{
    public class NullMailerService : IMailerService
    {
        public NullMailerService()
        {
            Logger = new NullLogger();
        }

        public static ILogger Logger
        {
            get;
            set;
        }

        public void Send(MailMessage message)
        {
            Logger.Info(string.Format("Sending message to {0}:\r\nsubject: {1}\r\n{2}",
                                      message.To[0].Address, message.Subject, message.Body));
        }
    }
}